function post_url_to_json(url){
    if(typeof(url)=='string'){
        let result_json = {};
        let url_array1= url.split('&');
        for(let i=0; i<url_array1.length; i++){
            url_array2 = url_array1[i].split('=');
            result_json[url_array2[0]] = url_array2[1];
        } 
        return result_json;
    }
}


module.exports.post_url_to_json = post_url_to_json;